<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no" />
    <meta charset="utf-8" />
    <title>test page</title>
    <style>
        html,body,.container{
            width: 100%;
            height: 100%;
            margin: 0;
            overflow: hidden;
        }
        .main{
            height: calc(100% - 41px);
            background-color: #eee;
            overflow-x: hidden;
            overflow-y: auto;
        }
        .listTitle{
            height: 40px;
            line-height: 40px;
            margin: 0;
            font-size: 18px;
            text-align: center;
            border-bottom: 1px solid #007ACC;
        }
        .main{
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        .item{
            padding: 10px 0 10px 10px;
            border-bottom: 1px solid #999;
        }
        .item>img{
            float: left;
            width: 50px;
            height: 50px;
        }
        .item>p{
            height: 50px;
            line-height: 50px;
            margin:0 0 0 60px;
        }
        #m2{
        	display: none;
        	position: absolute;
        	top: 0;
        	left: 0;
        	width: 100%;
        	height: 100%;
        }
    </style>
</head>
<body>
    <div class="container">
        <p class="listTitle">Tlists</p>
        <ul class="main">
            <li class="item">
                <img src="about:blank" data-echo="" alt="" />
                <p>title and describe</p>
            </li>
        </ul>
        <ul id="m2" class="main">
            <li class="item">
                <img src="about:blank" data-echo="" alt="" />
                <p>title and describe</p>
            </li>
        </ul>
    </div>
    <script src="../echoChangeByCc.js"></script>
    <script>
        var main=document.body.querySelector(".main"),
            emptyImgBg = "",
            picture=[
                "",
                
                "",
                
                ""
            ],
            html="",
            index;
        
        var obj1=echoChangeByCc.initNew({
            container:main
        }),
        obj2=echoChangeByCc.initNew({
            container:m2
        });
        for(var cont=0;cont<3;cont++){
            for(var i=0;i<10;i++){
                index=~~(3*Math.random());
                html+="<li class=\"item\"><img src=\""+emptyImgBg+"\" data-echo=\""+picture[index]+"\" alt=\"\" /><p>title and describe</p></li>";
            }
        }
        main.innerHTML=html;
        for(var cont=0;cont<3;cont++){
            for(var i=0;i<10;i++){
                index=~~(3*Math.random());
                html+="<li class=\"item\"><img src=\""+emptyImgBg+"\" data-echo=\""+picture[index]+"\" alt=\"\" /><p>title and describe</p></li>";
            }
        }
        m2.innerHTML=html;
        obj1.render();
        obj2.render();
    </script>
</body>
</html>